<?php
/**
 * チームメンバー関連画面
 * Enter description here ...
 * @author admin
 *
 */
require_once APPLICATION_PATH . '/views/Components/MemberEdit/MemberEdit.php';
require_once APPLICATION_PATH . '/views/Components/MemberEdit/MemberEditSubmit.php';
require_once APPLICATION_PATH . '/views/Components/SelectMember/Controller.php';

class MemberController extends  Zend_Controller_Action
{
	const URL_EDIT_SUBMIT_ACTION = '/Member/editcomp';

	/**
	 * 初期化
	 * Enter description here ...
	 */
	public function init()
	{
		/* Initialize action controller here */
	}

	/**
	 * チームメンバー編集追加画面
	 * Enter description here ...
	 */
	public function editAction()
	{
		$objMemberEdit
		= new Components_MemberEdit(
			'ME',
			Components_AgeRadiobutton::JUNIOR_SCHOOL,
			self::URL_EDIT_SUBMIT_ACTION
		);
		$sHtml = $objMemberEdit->fetch();
		$this->view->CONTENTS = $sHtml;
	}

	/**
	 * 編集SUBMIT遷移画面
	 * Enter description here ...
	 */
	public function editcompAction()
	{
		$a = 'bv';
		$objMemberEditSubmit
		= new Components_MemberEdit_Submit(
			'ME',
			Components_AgeRadiobutton::JUNIOR_SCHOOL
		);
	}

	/**
	 * メンバー選択画面
	 * @link <a href="https://www.evernote.com/view/bd2cf17d-3cde-46b0-ab55-5423181e7c0b?locale=ja#n=bd2cf17d-3cde-46b0-ab55-5423181e7c0b">マインドマップ</a>
	 * テンプレート：/../../jsc/trunk/application/views/scripts/member/select.html
	 * メインコンポ：/../../jsc/trunk/application/views/Components/SelectMember/Controller.php
	 */
	public function selectAction()
	{
		$objContents = new Components_SelectMember_Controller('MMSEL', Models_Players_Controller::JUNIOR_SCHOOL);
		$this->view->CONTENTS = $objContents->fetch();
	}
}